import json
from fastapi.responses import JSONResponse
from fastapi import APIRouter
from .dir import Dir

router =APIRouter()



@router.get('/',response_class=JSONResponse)
def get_catalogue():
    with open('root.json','r',encoding='utf8') as f:
        return JSONResponse(content=f.read())
